<!DOCTYPE html>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <title>文档上传</title>
    <link rel="shortcut icon" type="image/x-icon" href="${pageContext.request.contextPath}/favicon.ico"/>
    <link rel="stylesheet" href="${pageContext.request.contextPath}/layui/css/layui.css">
    <link rel="stylesheet" href="${pageContext.request.contextPath}/css/common.css">


    <link rel="stylesheet" href="${pageContext.request.contextPath}/layui/extend/dtree.css">
    <link rel="stylesheet" href="${pageContext.request.contextPath}/layui/extend/font/dtreefont.css">
    <link rel="stylesheet" href="${pageContext.request.contextPath}/layui/extend/formSelects-v4.css">

    <style>
        .layui-form-label {
        width: 120px !important;
        text-align: center !important;
    }

    .layui-input-block {
        margin-left: 120px !important;
    }
    </style>
</head>
<body>
<div class="yadmin-body animated fadeIn">
    <form class="layui-form layui-form-pane" enctype="multipart/form-data">

        <div class="layui-form-item">
            <label for="id" class="layui-form-label">
                文档id
            </label>
            <div class="layui-input-block">
                <input type="text" id="id" name="id" value=""
                       lay-verify="required" lay-vertype="tips"
                       autocomplete="off" class="layui-input">
            </div>
        </div>

        <div class="layui-form-item">
            <label for="projectId" class="layui-form-label">
                所属项目编号
            </label>
            <div class="layui-input-block">
                <input type="text" id="projectId" name="projectId" value=""
                       lay-verify="required" lay-vertype="tips"
                       autocomplete="off" class="layui-input">
            </div>
        </div>

        <div class="layui-form-item">
            <label for="fileName" class="layui-form-label">
                文档名
            </label>
            <div class="layui-input-block">
                <input type="text" id="fileName" name="fileName" value=""
                       lay-verify="required" lay-vertype="tips"
                       autocomplete="off" class="layui-input">
            </div>
        </div>

        <div class="layui-form-item">
            <label for="fileType" class="layui-form-label">
                文档类型
            </label>
            <div class="layui-input-block">
                <input type="text" id="fileType" name="fileType" value=""
                       lay-verify="required" lay-vertype="tips"
                       autocomplete="off" class="layui-input">
            </div>
        </div>

        <div class="layui-form-item">
            <label class="layui-form-label" for="file">上传文件</label>
            <button type="button" class="layui-btn layui-btn-normal" id="uploadFile">选择文件</button>
            <div class="layui-input-inline layui-col-md4">
                <input type="text" id="file" name="file" value=""
                       lay-verify="required" lay-vertype="tips"
                       autocomplete="off" class="layui-input">
            </div>
        <%--            <div class="layui-input-inline uploadHeadImage">--%>
<%--                <div class="layui-upload-drag" id="uploadFile">--%>
<%--                    <i class="layui-icon"></i>--%>
<%--                    <p>点击上传文件，或将文件拖拽到此处！</p>--%>
<%--                </div>--%>
<%--            </div>--%>
<%--            <div class="layui-input-inline">--%>
<%--                <div id="uploadResult" class="layui-upload-list">--%>

<%--                </div>--%>
<%--            </div>--%>
        </div>
    </form>
    <div class="layui-form-item">
        <div class="layui-input-block" style="margin-left:0;text-align:center;">
            <button class="layui-btn layui-btn-normal btn-w100" lay-submit="" lay-filter="submit" id="commit" style="margin-left: -120px">提交上传</button>
        </div>
    </div>
    <script src="${pageContext.request.contextPath}/js/jquery.js"></script>
    <script src="${pageContext.request.contextPath}/layui/layui.js"></script>
    <script src="${pageContext.request.contextPath}/js/common.js"></script>
    <script>
        var userId = '${user.id}';
        var trueName = '${user.trueName}';
    </script>
    <script src="${pageContext.request.contextPath}/js/document/upload.js"></script>
</div>
</body>
</html>